#ifndef CONFIG_H
#define CONFIG_H

//定义存放配置信息的结构体
struct config
{
    char *server_url;
    char *client_id;
    char *topic_sub;
    char *topic_pub;
    char *api_key;
    char *secret_key;
};

int parse_file(char *path, struct config *cfg);

#endif
